create_teacher: if the user is unauthorised, then redirect to the home page