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