Handling data entry in the ward page