Added image validation to helpers
removed secret from the key

before saving it in the database