Refractored readProfile function
Fixed signup page, when profile is deleted