Fixed flash message bug and change course's number to be string field