Refactoring routes. Hooking up login. Connect Prompt to API