Thank you. I fixed it by flashing the stock firmware.I guess then flashing via odin will help. Search on youtube how to flash stock firmware via odin and you can do it easily. After that boot the device and do a partial setup with the sim inserted. Then flash your custom recovery and flash the Floyd Rom. Select CSC as last used. That should work.