Error msg and redirecting when user isn't allowed to perform edit action