fixed a bug with the logout page and added admin page