Mean stack project


Actually my project is based MEAN stack i.e, there are 3 users to login (admin,faculty,ceo) here i have used routing to connect the individual users in a single page application but i have a sign up page that the data entered into signup page how it can be stored into mongodb database and how to do server side validation