Add beforeSave function
Add login form login.ctp
Change register function