updated angular app (user part) to match the new api