more login fixes