Updated users.py to include api to create user and log in