Now using isUserExist() instead of getUser() to check whether a user is
exist or not.