adding code for creating users and logging in