Fixed some identity login issues