add constrains to register and login - still default ugly error message to change