added detailed logging for heroku
fixed user model registration error