added login on main page