Fixed error on user login.