Login and registration

Implementation of Login and registration functions