fix minor issues with display and front-end validation
javascript validation form