If a number of people resign from a company because of poor pay compared to other companies (there's a 3 month notice period) and then head management contact 2 of the 5 employees before their notice period is over and offers them significantly more money to stay, but they don't offer the other 3 employees more money then is this legal/ok?