Added support to use session_id() method instead of variable
Added validation methods for the POST data