front-end validation pulling rules from backend