started adding database stuff to login.php