Client side login/registration validation