edit method for obtaining captha