@darren889 it sounds like the profile is a bit buggy, heres what I would suggest.
1. Delete the current wifi profile
2. Setup a new profile that is explicitly just for wifi, its not best practise to bundle wifi settings with other things like restrictions etc. make sure all the SSID is typed the same i.e. case sensitive, this should be an issue but who knows.
All of my devices run two profiles, one which have the wifi settings and a second which contains restrictions, passcode setings, wallpaper settings etc. The reason for this is because if you bundle everything into the one profile making changes to another setting can cause the wifi to drop off.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.