redirection to login bugfix;