Fixed bug with editing of posts. Changed PIN to string.