added loads of user stuff and auth things.