major login fixes