registration and login working