Fix user registration and user login