Login System & MySQLi Switch

Switched over to MySQLi from MySQL and integrated a Login System that is
fully functional atm. Need to do some design changes but every piece
works.