Put more validation in date formatting and fixed tabindex