moved github login stuff here from server