Solve add student validation logic