fixed mymodel. Login now works in principal.