added a little check profile's inputs and deletion