changed returned json of post so that it returns the user's email