Register auto login fix

- fix displaying of login page after successful login