Implemented registering. Login is simulated