Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The login button in the login block does not redirect to the user login, instead the url is created as:
http://www.yourdomain.com/node?destination=node
or whatever the page your on. So for example:
http://www.yourdomain.com/node/18?destination=node%2F18
Similar problems exist with the reply button. See also 2 in comment #5 in issue Validation