show message on error
add required to inputs