fixed log in issue