Why are the Front brakes are sliding just replaced back brakes?

You still have air in the back brake lines or they are not adjusted properly which is making the front brakes take the full load