Form data is now validated

When the user tries to add a class, the update activity now does some data validation.