user registration and login working