solved login bug inside userValidate method