Previous solution for permitted params didnt work properly, resolved