Added authorization check after password.