Login and Registrationg logic added