Add user_login def for views.