nav changes based on login/logout, moved login and logout functions to nav controller