I worked in a company in HR as a clerk for the last 6 years and 4 months. I resigned from my job with a 5-day notice instead of the required 15 days as per company rules because my new company was not giving me 15 days to join. I mentioned the last working date in my resignation letter and changed my job after that date. However, my old company is not providing my clearance and gratuity. They claim that I did not hand over properly, but at the time of resignation, they never mentioned the need for a formal handover. Is it legal for them to withhold my salary and gratuity?