One IT consultancy first offered me free training + transportation + accommodation. After training stared they signed contract that If I fail to complete their training or terminates their offered employment, they will reimburse all investment through court. Now they are saying if I fail on their training exam I need to return back all their investment. I want to ask legally is it OK to make such contract ? Do I need to accept their demand?