Validation Added to Inputs

Client-side (native html5 and javascript) and server-side validation of
inputs added.