Added error messages when registering