validation on create subject page, functions file for validations created
My Solution for edit subject page, works great