added check for existing user on reigster