login and registration working