added error messages in signature verification