javascript fixes for paid leave validations and add button deletabilty