Bug causing user not being able to login for the first time fixed.