checking whether a user already exists