Fixed log in issues