Added flash messages and tested nav links