Fixed the log in bug.