Updated login to include appropriate error messages.