got user registration and logging in and out working