add apis for creating a user, logging in and logging out