Added image's format validation on registration page