refactor web server validations to use active record
refactor web server validations into models