fixed log-password bugs