For the sake of extreme brevity, I consolidated the super basic login code