change action type and scroll and add permissions when logging in