User login and registration

Create templates and controller code for registration and login pages, and implement all logic related to registering and authentication.