Added error checking + flash messages to user, room, and sensor models.