fix user input check from javascript to html5 regex check
more input validation