Minor login fixes