fixed log in validation