changed error messages on permission check