the code for login page which connect to MYSQL.