worked on hooking up app to login api endpoint