added profile factory for storing user info