fixed all errors with login