User registration and sign in now works