Check employee in _get_lastest_contract

Adding the search condition of the employee otherwise it will return the last available contract for all employees rather than the employee in the browse lopp