Upon registration i want a field, Validation Code. I want the validation to check the entered value against academy_validation.valid_key where user_key IS NULL. If validated updates academy_validation.user_key with user id. When viewing profile I want to show academy_validation.valid_key, academy_validation.start_date and academy_validation.end_date.