Added support for flash messages
Added flash messages to registration process