transfer the title field check function from client side to server side