add non working javascript validation to login