Fixed TypeError when POSTing a new user.