adding error callback for /register
update the error message
typo