Added login functionality
Added logout functionality