added check for user existing