devise working -- but there is some error related to flash in action dispatch