implement basic validation for session and solution forms