Implemented error handling of user login.

Known issue: When users request for resetting password, a email will sent to their inbox. However, the route of Erdiko currently cannot render the URL.