Just change the Access of your login module (right column in the CB module settings) from "public" to "guest" (in joomla means logged-out). Then if you need a different login module for logged-in users, duplicate the module, and set Access to "registered" (registered level in joomla means logged-in).
Does that solve your use-case ?