Moves login/secret to private scope. Adds interface error checking.