Only show submit button if details valid