Fixed a bug in .routes/register.js