Required fields validation is not working.