register and login errors catched
register and login errors catched