Login functionality, implemented dashboard.php

tables in dashboard
redirect in login.php via javascript
corrected various syntax errors