pro profile structure logout function