Login redirects to 'http://example.com/user/login?destination=' of the drupal site instead of logging in.

However, I found out that changing the log in form used to 'user_login' instead of 'user_login_block' gets it working correctly.

Line 8 of rlogin.module from:
define('LOGIN_FORM', 'user_login_block');
to define('LOGIN_FORM', 'user_login');
and line 79

       if ($form_id == 'user_login_block') {
       ....
       }

to

       if ($form_id == 'user_login') {
       ....
       }

I believe this is an error. Or am I mistaken?