Added functionality to flash messages after a user registers.