Login, logout and registration

Login, logout and registration implemented