password fix
removed registration and added some logic to authentication