Fixed regestration problem on Heroku