Changed login script to mySQLi