fixed more login bugs