Created validation code

Created validation code to check for required fields and added error
messages to appear when requirements for input fields aren't satisfied.
 Also styled the fields red for when they are filled out incorrectly.