Refactored form validation to be usable by all the views down the road.
Merge remote-tracking branch 'origin/master'