Registration implementation
Implemented login