-fixed bug where registring new user didn't create unique url in db