Improved check function of user's info