Fixed annoying null ref on postlogin