Changed tabs to spaces
Added exception for max_length value on session variable fields