student and teacher roles working with some validation in the server-side method.