implemented check for active session in submit recipe