added endpoint for creating user and logging in