fixed redirection issues for login form