local auth working, pretty hacked together at the moment, need to come back through and refactor
updating to work with facebook, google, twitter, github and local auth