changed fields to float
got flash message to work