register works; displaying flash messages needs work