bugid-19518 | better js signup form validation [changes after CR]