fixing log in issues