modal posting, but not alerting correctly