Implemented basic registration and login