changed the else null to return an empty staff entry with error