Default Failed to connect

Hey guys I just flashed my ROM to Cyanogen Mod 10.1 for the galaxy rugby pro but when I try and connect to wifi I get 1 of 2 errors one is failed to connect instantly and the other is Authentication Failed