login status validation issue