showing debug, flash and error message
add user authentication and access rule