Move login views to api and greeting to index.