prevent empty session from being created