input checking for exercise page