Fixed a type with the login function.