added validation to edit course form