added toggle login capability