Andrew/networking

EPISODE ONE OF THE NETWORKING TRILOGY
This logic is the same as the regular login logic, maybe consider combining the two into a single method?