I don't understand why you did that? You locked yourself out of your home folder. If you have a backup (Time Machine), restore your home folder from the backup. If no backup, try booting in safe mode. Hold down your shift key and restart. If that doesn't work try this:
Restart your Mac but this time hold down your command + r keys. That should get you into recovery. Once in recovery, select "Utilities". Then select "Disk Utility". Highlight your Macintosh HD and select "repair permissions". When that's finished, exit recovery and try to boot up normally.