squashing a few bugs through the login flow