finish first version of login managemant