make a javascript for checking email and password validation
stil really bad in GUI due

will be improved later