Fixed error message handling and added record button