cleaned up + commented formValidaton.js