adding check if user exists method