Implemented logout
Added register new user functionality