Added HTML input validation