create view logged in; adjusted functions. Can't remember why auth.php changed.