adding login basic mechanism