Created a layout for loggedin Users
Added the dynamic flash messages