Is it legal for an employee of a Company A to work for Company B, without serving resignation to Company A? What are the consequences regarding PF/Gratuity/Income-Tax/Corporate Policies over working in two companies in parallel and operating a proprietary firm ?