added validation to add course form