This tutorial describes three methods to authenticate a user. First is by hardcoding the user info in the script. Second, check the user information in the database. Third is by adding image verification in the login form where the user must enter the random numbers displayed in the image.