fixed login var check