Add validation to remote actions