got rid of else

also added temp logoinstate to false