checking that the profile folder exists