After installation, I can't login as user

Update : after changing the password to a shorter one, I can now use it to login via SSH and sudo. But the 504 error on the user portal remains.