Refactores file front end validation and modifies style for it