Updated login to only login if un-authenticated