Solved the index page, added and styled the flash, added and ran tests on credentials