tried to get flashmessages working