Another improvement for the Login method.

Now it only returns an error value instead of an unnecessary
bool AND and an error value.