fixing bugs with first time login/registration