Some login fixes.