added validation logic and ability to clear student table