Added the TRIAL_ALREADY_FINISHED code back to the createUser cloud function