removed salt &  email from profile; adjusted code