changed logic of signedin