added registration and login