fix some bugs for error_messages in signing a new user