Added login feature, issues with logout