Your bathroom exhaust fan should be sized properly ... This is often completed with a wall, soffit or roof cap. When possible, I choose to vent my fans out an exterior wall through a backdraft ...
It's also a bad idea to use an existing roof vent for bathroom exhaust. You'll partially block the vent with the duct pipe, reducing the flow of cooling air through your attic. Moreover ...