Implemented teacher registration API using a post method to /teacher/register