diff --git a/apps/files_encryption/js/detect-migration.js b/apps/files_encryption/js/detect-migration.js
index 2cf6a61d14584c994058a48df36cd444c44c9922..e726515abc226f1ac2de60594c74a854a2bab789 100644
--- a/apps/files_encryption/js/detect-migration.js
+++ b/apps/files_encryption/js/detect-migration.js
@@ -19,8 +19,8 @@ $(document).ready(function(){
 			success: function(response) {
 				if (response.data.migrationCompleted === false) {
 					var message = t('files_encryption', 'Initial encryption started... This can take some time. Please wait.');
-					$('p[name="message"]').html('<img src="' + OC.imagePath('core', 'loading-dark-small.gif') + '"/>  ' + message);
-					$('p[name="message"]').removeClass('hidden').addClass('info');
+					$('p[id="message"]').html('<img src="' + OC.imagePath('core', 'loading-dark-small.gif') + '"/>  ' + message);
+					$('p[id="message"]').removeClass('hidden').addClass('info');
 				}
 			}
 		});
diff --git a/core/templates/login.php b/core/templates/login.php
index 214fda3b61e3d4eed27a1023000f8be445282a3f..c270963439c8288e750f4fb229daa04aeafdd672 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -18,7 +18,7 @@
 				<small><?php p($l->t('Please contact your administrator.')); ?></small>
 			</div>
 		<?php endif; ?>
-		<p name="message" class="hidden">
+		<p id="message" class="hidden">
 		</p>
 		<p class="infield grouptop">
 			<input type="text" name="user" id="user" placeholder=""