So much crap getting login working nicely