Fix log in issues