fixing null pointer if success message is not provided