fixed redirection when logging in to home page