Moved index to view, moved login to index.