Added login form and correct some errors.

Fixed some bugs in the authentication route and added first/name to
user schema.