Added authentication, cookies to remember user, and password reset