Adjust error messaging and bail if name is not a string in registration