user profile - creating the server-side code