Added session validation.