Use integer widgets in forms when the Field is of type 'reference'
Auth: redirecting user to profile when it's logged in and opens login(), conformed Auth and ModelsAuth usage as stated in the documentation (auto-define tables)