I want to say a huge thank you to everyone who helped me with my issue recently. Especially KnowOneSpecial
who has been emailing me with suggestions for the past week.
I am happy to say the issue is now solved and it was infact a coding error that was leading to it.
this is a great community and I will always be thankful for your help