Small login fixes