Problem when "Logging in through steam"

I need to get some addons and maps but when I click download and it redirects me to steam to log in it wont let me log in. I have a legit copy of Gmod and a valid steam account but when I log in It either says my log in is invalid or it says “ERROR” under the log in box. Please help me get this problem fixed.

I’m already suspicious because your Steam Profile Link is broken.

Try logging in and out of Steam, if that doesn’t work try restarting it.

make sure your steam account is set to public.

Link us to your steam profile

Try to wait, maybe the steam servers are too busy

Make sure you have the little code on your profile page and set your profile to public.

Also, linky the profile