fixing heroku error in register