login is now fully functional.
added functions file. still working on table.php