I have been slowly learning how to use the Yii framework for the past couple weeks. At the beginning of this week, I discovered the simplelogin module, which helped me a lot understand how authentification works. However, there is something that I encountered in the module that I did not quite understand: The difference between validate() and hasErrors(). Can I use hasErrors() without validate()? when should I use one or the other?