Separate dependencies/config for login, dashboard and user-dashboard
Clean up code in user-dashboard controller