diff --git a/src/app/signup/student-signup/student-signup.component.html b/src/app/signup/student-signup/student-signup.component.html
index 86ce369d7632758dd516dd26e11715b8eb4881a1..26e0b43c1d50969c03037857f022220ba6da6b20 100644
--- a/src/app/signup/student-signup/student-signup.component.html
+++ b/src/app/signup/student-signup/student-signup.component.html
@@ -47,7 +47,7 @@
     
     <!-- Password -->
     <mat-form-field class="full-width">
-      <input matInput type="password" formControlName="password" placeholder="Mot de passe" required>
+      <input matInput type="password"  minlength="8" minlength="8" formControlName="password" placeholder="Mot de passe" pattern="(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required>
     </mat-form-field>
 
     <!-- Confirm password -->