add validator to login/register sys