Changed the flashed message styling and secured the test db action