add login settings in views and controllers