Added checking for a user's existence