Added a small form validation.

Added some validations for the form of the single view. Now this script checks the input fields for authenticity of the data input and execute ajax after successful verification.
Added a few HTML tags and css error classes In case of wrong input too.