Part way through adding login functionality. Added logincode.php