edit Login endpoints frontend