Front-end validation at Main