added registration and login on server