added input validation to admin api methods