Fixing bugs and create logout page