fixed login to be able to fail and added register button to create a new user