Added authentication and registration

Now new users can register.