Send the post id to a front end edit post form

The post id is sent correctly. What I needed to do was to add the bellow code to the getForm() function, before ob_start():

$post_to_edit = array();
$post_to_edit = get_post( $_POST['postid'] );
$this->data['item_name'] = $post_to_edit->post_title;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)