finalized validation in courses model