Fix log in issue