fixes log in issues