proper use of the navigator with the login