added username to schema
if not logged in redirect to login.php
adding input fields to index page