create index.php
fixed call to unknown function
added login.php
fixed redirect location
create logout.php