fix error when no customer returned
fix login