First, since this is the Q&A section, always remember to ask a question. You need to revise the CHECK case in your switch statement to something like this :
case CHECK :
Flag = true; for( int i=0; i < sizeof( password_ACT_DEACT ); i++ )
{
if( password[i] != password_ACT_DEACT[i] )
{
Flag = false; break; }
}
TextLCD_Cmd(&lcd,0x80);
if( Flag )
TextLCD_Puts(&lcd,"RIGHT!!");
else
TextLCD_Puts(&lcd,"Wrong!");
HAL_Delay(2000);
password_input= FIRST;
break;