implemented login and render data to template, creted authClient manager