Fixed tests
Implemented user registration
Implemented session management