fix a login bug that error when session data null