Modal value being passed, internal server error