Added flash messages
Submit application method