add mail functionality validation