added check if user exists