user registration and login with authentication