live index page can sort by date now, added custom validation function to change value input by user to right time format