fix login var issue