added blank user/pass check & removed useless html5 check