Problem Solved! After a small change in BaseModel i had a problem with register and login.