Working login / register endpoints. Added some API endpoints