Added basic checks for the html form