Return error code when password is empty