Adds root url for Heroku.
Fixes incorrect reset_session_token code.
Adds uniqueness attr to username.