Added logout link
Added login functionality