fixed issue with modalerror and 403 not checked