when I try to login to Kubuntu through the desktop mode, a warning that says "can not enter home directory" is shown, and it throws me back to the login page.
I read about a guy with the same error message and it was due to changing the the path to the home directory before migrating the contents to the new location.
Maybe you inadvertently did something similar. He solution in that case was
Maybe that will help