How to add custom field to top of WordPress Comment Form for both logged in and anon users

I think you could use the comment_form_field_comment() filter to add the custom HTML before the main comment field. The filter is fired for both visitors and loggedin users.

add_filter( 'comment_form_field_comment', 'wpse_426971_comment_form_field_before' );
function wpse_426971_comment_form_field_before( string $field ): string {
    return sprintf(
        '<p>%s</p>%s',
        is_user_logged_in() ? "I'm logged in" : "I'm not logged in",
        $field
    );
}

Or you can use the other dynamic comment_form_field_{$name} filters, if you want to add content before or after the other fields.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)