Adding controller for the HTML page with input validations.
Unfinished work on html page