PHP script for checking and loading user data from database.