Lets move this to a before filter in the model, let's keep this code DRY.