improvements to user login