Added client side validation to home page