added sidebar, fixed login and registration

Also added template and index page