Upgraded Login to MySQLi
Merge branch 'master' into MPR