login page navigates to homepage