added login focus and redirects to default when logged out