fixed the log in problem finally