added login feature, logout not working