title: Login form validation in Yii framework with my sql database
body: <p>I am new in yii framework but have little bit knowlwdge about yii.
  I want to validate my login form with database.
  If match UserName(input)=UserName(db) and also password then Echo Message "Success" else "Error".</p>
  
  <p>Keep in mind. I am new in Yii not advance member.</p>
  
  <p>What Code should we write in:</p>
  
  <p>-> Form </p>
  
  <p>-> Controller<br>
  -> Model</p>